home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / misc.save / 000133_fdc@panix.com_Wed Dec 12 14:24:25 2007.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: reader1.panix.com!panix!not-for-mail
  2. From: Frank da Cruz <fdc@panix.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Screen Capture
  5. Date: Wed, 12 Dec 2007 19:24:19 +0000 (UTC)
  6. Organization: PANIX Public Access Internet and UNIX, NYC
  7. Lines: 50
  8. Message-ID: <slrnfm0db3.p5g.fdc@panix2.panix.com>
  9. References: <h654j.66697$RX.26340@newssvr11.news.prodigy.net> <13l6v29jqcmhl2e@corp.supernews.com> <g3J7j.77732$YL5.57974@newssvr29.news.prodigy.net>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: panix2.panix.com
  12. X-Trace: reader1.panix.com 1197487459 140 166.84.1.2 (12 Dec 2007 19:24:19 GMT)
  13. X-Complaints-To: abuse@panix.com
  14. NNTP-Posting-Date: Wed, 12 Dec 2007 19:24:19 +0000 (UTC)
  15. User-Agent: slrn/0.9.8.0 (NetBSD)
  16. Xref: panix comp.protocols.kermit.misc:15715
  17.  
  18. On 2007-12-12, 2damn <2damn@nospam.com> wrote:
  19. : On Mon, 03 Dec 2007 03:47:21 +0000, Robert Bonomi wrote:
  20. :> In article <h654j.66697$RX.26340@newssvr11.news.prodigy.net>, 2damn 
  21. :> <2damn@nospam.com> wrote:
  22. :> Kermit has the 'log' command that will provide various kinds of gory
  23. :> detail to a file.  'log session' before a 'connect' command, and you wil
  24. :>  capture all the interactive stuff you do, and which you can use to
  25. :> built a script from.
  26. :> 
  27. :> This approach fails if the remote system thinks its talking to something
  28. :> where it can play cursor-positioning and selective over-write games.
  29. :> 
  30. :> If you can tell the remote computer that you're using some kind of a
  31. :> 'dumb' hard-copy terminal this issue is moot.
  32. :> 
  33. :> Else, screen-scraping gets *VERY* complex.
  34. :
  35. : I tried "log" and it does contain communication data that is not useful 
  36. : for me. And some bits are total garbage so there may be some of what you 
  37. : mention in your second paragraph going on. 
  38. :
  39. The garbage is mostly likely escape sequences and control characters from the 
  40. host application.
  41.  
  42. : I have found that "cat /dev/vcsX" can copy ttyX, but of course not my 
  43. : ttySX.
  44. :
  45. That would be the same as Kermit's session log -- it's just a copy of the
  46. incoming data stream.
  47.  
  48. : I can format the capture with newlines (dd) and trim what I want 
  49. : (sed). Attempting to get it to work on the serial lines. 
  50. :
  51. As explained here:
  52.  
  53.   http://www.columbia.edu/kermit/ckfaq.html#term
  54.  
  55. C-Kermit (unlike Kermit 95 on Windows) is not a terminal emulator; it's a
  56. communications pipe between the remote system and your terminal window or
  57. console driver, the latter being the component that handles the terminal
  58. emulation.
  59.  
  60. If your terminal emulation is ANSI-compliant (such as VT100, VT220, etc),
  61. we have a utility for stripping escape sequences from session logs:
  62.  
  63.   http://www.columbia.edu/kermit/ftp/utils/rmescseq.c
  64.  
  65. It doesn't interpret the escape sequences, it just removes them.
  66.  
  67. - Frank